<template>
  <div>
      Godz菠萝测试:{{Test.current}}---{{Test.name}}
    <button @click="changeTest">修改</button>
  </div>
  
</template>

<script setup lang="ts">
import {TestGP} from '../../store/index'
let Test=TestGP()
Test.$subscribe((args,state)=>{
//监听 Test 值的变化
//变化前是 args 变化后 state

})
Test.$onAction((args)=>{
//监听Test action 函数调用
})
let changeTest=()=>{
  //批量修改
  // Test.$patch({
  //   current:12,
  //   name:"修改后的值"
  // })
  Test.yibuUser()
}
</script>

<style>

</style>